/*
* qiudot.com Inc.
* Copyright (c) 2019 All Rights Reserved.
* create by qiudot
* date:2019-09-11
*/
package com.lora.web;

import com.acooly.core.common.web.AbstractJQueryEntityController;
import com.google.common.collect.Maps;
import com.lora.entity.Wirelesssmokefeel;
import com.lora.service.WirelesssmokefeelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Map;

/**
 * 无线烟感数据 管理控制器
 * 
 * @author qiudot
 * Date: 2019-09-11 23:47:11
 */
@Controller
@RequestMapping(value = "/manage/lora/wirelesssmokefeel/wirelesssmokefeel")
public class WirelesssmokefeelManagerController extends AbstractJQueryEntityController<Wirelesssmokefeel, WirelesssmokefeelService> {
	
	private static Map<Integer, String> allStates = Maps.newLinkedHashMap();
	static {
		allStates.put(1, "火警");
		allStates.put(2, "传感器故障");
		allStates.put(3, "电池低电压");
		allStates.put(4, "火警消除");
		allStates.put(5, "传感器故障消除");
		allStates.put(6, "低电压恢复");
		allStates.put(7, "正常状态");
		allStates.put(8, "探测器上电");
		allStates.put(9, "按键自检");
	}

	{
		allowMapping = "*";
	}

	@SuppressWarnings("unused")
	@Autowired
	private WirelesssmokefeelService wirelesssmokefeelService;

	
	@Override
	protected void referenceData(HttpServletRequest request, Map<String, Object> model) {
		model.put("allStates", allStates);
	}


}
